package com.jobs.common.test;

import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

public class ObjectReDemo {
    public static void main(String[] args) {
        String str = new String("aaaa");
        System.out.println(str);

        SoftReference<String> softReference = new SoftReference<>(new String("ddddddd"));

        WeakReference<String> wrf = new WeakReference<>(new String("ccccccc"));


    }
}
